package com.gpy.hospital.reception.service.impl;

import com.gpy.hospital.cms.dao.DoctorMapper;
import com.gpy.hospital.cms.pojo.Doctor;
import com.gpy.hospital.reception.service.IZhuanJiaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author
 * @Date 2020/3/26 12:20
 * @Desc
 **/
@Service
public class ZhuanJiaServiceImpl implements IZhuanJiaService {
    @Autowired
    private DoctorMapper doctorMapper;

    @Override
    public List<Doctor> getAllByStatus() {
        return doctorMapper.getAllByStatus();
    }

    @Override
    public List<Doctor> getAllByKeyWord(String searchWords) {
        return doctorMapper.getAllByKeyWord(searchWords);
    }
}
